<?php // require_once("../include/isload.php");

require_once("../include/conn.php");

if($_REQUEST["action"] == "update")
{	
if(!empty($_REQUEST[id])){
$id=$_REQUEST[id];

$title=$_REQUEST["title"];
$tdate=$_REQUEST["tdate"];
$days=$_REQUEST["days"];
$isshow=$_REQUEST["isshow"];
	
$sql_aq="UPDATE `$tb_aq` SET `title` = '$title',`startdate` = '$tdate',`days` = '$days' ,`isshow`='$isshow'WHERE `id` = '$id'";
$cn_aq = mysql_db_query($db_name,$sql_aq);

?>
<script language="JavaScript" type="text/JavaScript">
alert("更新成功!");
</script>

<?php
echo "<script language='javascript'>";
echo "self.location="."'"."anquan_mange.php'";
echo "</script>";	

}
}
?>


